Package com.netscape.cmscore.jobs
Class CronRange
java.lang.Object
com.netscape.cmscore.jobs.CronRange
class representing one Job cron element
here, an "item" refers to one of the 5 fields in a cron string; "element" refers to any comma-deliminated element in an "item"...which includes both numbers and '-' separated ranges.
an Element can contain either an integer number or a range specified as CronRange. In case of integer numbers, begin and end are of the same value
- Version:
- $Revision$, $Date$
- Author:
- cfu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBegin()
gets the lower boundary value of the rangeint
getEnd()
gets the higher boundary value of the rangeboolean
isValidRange
(int min, int max) checks to see if the lower and higher boundary values are within the min/max.void
setBegin
(int i) sets the lower boundary value of the rangevoid
setEnd
(int i) sets the higher boundary value of the range
-
Constructor Details
-
CronRange
public CronRange()
-
-
Method Details
-
setBegin
public void setBegin(int i) sets the lower boundary value of the range -
getBegin
public int getBegin()gets the lower boundary value of the range -
setEnd
public void setEnd(int i) sets the higher boundary value of the range -
getEnd
public int getEnd()gets the higher boundary value of the range -
isValidRange
public boolean isValidRange(int min, int max) checks to see if the lower and higher boundary values are within the min/max.- Parameters:
min
- the minimum value one can specify in this fieldmax
- the maximum value one can specify in this field- Returns:
- a boolean (true/false) on whether the begin/end values are within the min/max passed in the params
-